use serde::{Serialize, Deserialize};

/// 定义 应用 配置结构体
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Application {
    pub name: String,
    pub version: String,
    pub author: String,
    pub email: String,
    pub server: Server,
    pub profiles: Profiles,
}

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Profiles {
    pub active: String,
}

/// 定义 服务器 配置结构体
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Server {
    pub context_path: String,
    pub host: String,
    pub port: u16,
    pub reload: Option<bool>,
}












